/**
*	展会详情
**/
app.controller('gExpoDetailCtrl', ['$scope', '$state', '$stateParams', '$http', '$window', 'gConfig', 'utils',
  function($scope, $state, $stateParams, $http, $window, gConfig, utils) {
    var _id = $stateParams.id;
    // 页面数据
    $scope.expoDetailData = {
      loading: true
    }

    $scope.utils = utils;

    // 获取预警快报列表信息
    $http.get(gConfig.api.queryExpoDetail + _id + '/query', {params:{
        random: Math.random()
    }}).success(function (rs) {
      $scope.expoDetailData = rs.data.exhibition;
      $scope.expoDetailData.loading = false;
    });


    // 后退
    $scope.goBack = function () {
      $window.history.back();
    }
  }
]);
